import React, { Component } from "react";
import { Button, Form, Steps } from "antd";
import { BrowserRouter as Router, Route } from "react-router-dom";
const { Step } = Steps;
export default class fromRouter extends Component {
  render() {
    console.log(this.props)
    return (
      <Router>
        <div style={{ width: "500px" }}>
          <Form>
            <section>创建账号</section>
            <section>
              <Steps size="small" current={0}>
                <Step title="Waiting" />
                <Step title="Waiting" />
                <Step title="Waiting" />
              </Steps>
            </section>
            <section>
              <Route path="/fromRouter/:stepId"/>
            </section>
            <section>
              <Button>上一步</Button>
              <Button type="primary">下一步</Button>
            </section>
          </Form>
        </div>
      </Router>
    );
  }
}
